package com.joolun.common.utils;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class EnvUtil {

    public static final String PROD = "prod";

    @Value("${spring.profiles.active:dev}")
    private String profile;
    public String getEnv() {
        return profile;
    }

    public boolean isProd() {
        return PROD.equals(getEnv());
    }
}
